<?php require_once('../Connections/gabriel_paris.php'); ?>
<?php
include_once("class/SQLString.php");

if ((isset($_GET['id_zona'])) && ($_GET['id_zona'] != "")) {
  $deleteSQL = sprintf("DELETE FROM zonas WHERE id_zonas=%s",
                       GetSQLValueString($_GET['id_zona'], "int"));

  mysql_select_db($database_gabriel_paris, $gabriel_paris);
  $Result1 = mysql_query($deleteSQL, $gabriel_paris) or die(mysql_error());

  $deleteGoTo = "zonas.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $deleteGoTo .= (strpos($deleteGoTo, '?')) ? "&" : "?";
    $deleteGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $deleteGoTo));
}
?>

